package com.luban.springListener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class MailListener implements ApplicationListener<MailEvent> {

	@Override
	public void onApplicationEvent(MailEvent event) {
		System.out.println("监听到邮件时间了");
	}
}
